
from time import sleep
from page.base_page import BasePage
class Share(BasePage):
    def ele_attri_driver(self,driver):
        self.driver=driver
    def ele_commun(self):
        #进入社区
        self.driver.tap([(325,1850),(325,1850)],500)
        sleep(4)
    def ele_remain(self):
        #进入热门主厨
        self.driver.tap([(120,700),(120,700)],500)
        sleep(8)
    def ele_left(self):
        #向左滑动
        self.driver.swipe(960, 990, 280, 990, 500)
    def ele_produ(self):
        # 进入作品主页
        sleep(5)
        self.driver.tap([(256, 970), (256, 970)], 500)
    def ele_share(self):
        sleep(4)
        #点击分享
        self.driver.tap([(1017,102),(1017,102)],500)
    def ele_save(self):
        sleep(6)
        #点击保存图片
        self.driver.tap([(940,1480),(940,1480)],500)

    def look_all(self):
        self.ele_commun()
        self.ele_remain()
        self.ele_produ()
        self.ele_share()
        self.ele_save()
